package com.channel.temperature.collect.app.dao

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update
import com.channel.temperature.collect.data.response.TaskBean

@Dao
interface TaskDao {

    @Query("SELECT * FROM task")
    fun getAll(): List<TaskBean>?


    @Update
    fun updateUser(vararg taskr: TaskBean)

    @Insert
    fun insertAll(vararg tasks: TaskBean)

    @Insert
    fun insert(task: TaskBean)

    @Delete
    fun delete(task: TaskBean)

    @Query("DELETE FROM task")
    fun deleteAll()
}
